import request from '@/utils/request'

// 基础FMEA变更列表
export function fmeaChangeList(query) {
  return request({
    url: `/fmea/common/fmeaChange/list`,
    method: 'get',
    params: query
  })
}

// 自动变更接口
export function fmeaChange(query) {
  return request({
    url: `/fmea/common/fmeaChange/fmeaChange`,
    method: 'get',
    params: query
  })
}

// 变更对比
export function changeContrast(query) {
  return request({
    url: `/fmea/common/fmeaChange/changeContrast`,
    method: 'get',
    params: query
  })
}

// 项目变更忽略
export function fmeaChangeIgnore(data) {
  return request({
    url: `/fmea/common/fmeaChange`,
    method: 'put',
    data: data
  })
}

// 项目特性变更列表
export function characterChangeList(query) {
  return request({
    url: `/fmea/common/characterChange/list`,
    method: 'get',
    params: query
  })
}
